package mysql;

import java.util.Random;

public class Link {

	public static void main(String[] args) {
		String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
		int length=10;
		Random random = new Random();

		StringBuffer sb=new StringBuffer(); 
		for(int i=0;i<length;i++){

		int number=random.nextInt(62);

		sb.append(str.charAt(number));

		}

		System.out.println(sb.toString());
	}

}
